﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Books.Models
{
    /// <summary>
    /// 管理员类
    /// </summary>
    public class Admin
    {
        /// <summary>
        /// 管理员ID，主键，自动增长
        /// </summary>
        public int AdminID { get; set; }

        /// <summary>
        /// 用户名，唯一
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 密码哈希值
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 电子邮件地址
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 最后登录日期
        /// </summary>
        public DateTime LastLoginDate { get; set; }
    }

}
